package top.jiangyixin.cloud.ribbon.consumer.config;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * TODO
 * @version 1.0
 * @author jiangyixin
 * @date 2021/1/18 下午3:04
 */
@Configuration
public class ConsumerConfig {
	
	@Bean
	@LoadBalanced
	public RestTemplate restTemplate () {
		return new RestTemplate();
	}
}
